
<%@ page import="desmontec.documentos.MapaEstocagem" %>
<html>
    <head>
    	<g:javascript library="application" /> 
    	<g:javascript library="MapaEstocagem"/>
    	<g:javascript library="GuiaDeTrafego"/>
    	<modalbox:modalIncludes />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'mapaEstocagem.label', default: 'MapaEstocagem')}" />
        <title><g:message code="Cadastrar Mapa de Estocagem" /></title>
    </head>
    <body>
    	<modalbox:modalIncludes/>
    	
        <div class="container">
        	
        	<!-- CABECALHO -->
        	<div class="header">
				 <h1><g:message code="Adicionar Guias de Tr&aacute;fego" /></h1>        	
			</div>
        
            
            <!-- MENU -->
			<div class="left">
				<g:include  view="_menu.gsp"></g:include>
			</div>
			
			 <!-- CORPO -->            
            <div class="content">
			<g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            
            <g:form action="concluirMapaEstocagemEditar">
	            <div>
	            	<table cellpadding="2" cellspacing="0" class="tabelaAzul" >
	            		<thead>
	            			<tr>
	            				<th class="cabecalhoTabela"><g:message code= "Dados da DPG" /></th>
	            				<th class="cabecalhoTabela"><g:message code= "Dados do Mapa de Estocagem" /></th>
	            			</tr>
	            		</thead>
						<tbody>
							<tr valign="top">
								<td valign="top">
									<g:render template="dadosDPG" />
								</td>
								<td valign="top">
									<g:render template="dadosMapaEstocagem" />
								</td>
							</tr>
						</tbody>
					</table>
	            </div>
 				
            	<br />
            	
				<g:render template="listaGuiasEditar"/>
				
 				<br />
            	<hr />  
				
	            <div class="buttons" align="right">
					<span class="button">
		              	<g:actionSubmit class="undo" action="voltarParaCriarMapaEditar" value="Voltar" />
		            </span>
		            <span class="button">
		              	<g:actionSubmit class="guia" action="adicionarNovaGuiaEditar" value="Adicionar Guia" />
		            </span>
		            <span class="button">
		              	<g:submitButton name="create" class="save"  value="concluir" onclick="return validarGuaisAdd('${listaGuiasDeTrafego.size}')"/>
		            </span>
				</div>
            </g:form>
			</div>
			
			 <!-- RODAPE -->
            <div class="footer">
	            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            	<span class="menuButton"><g:link class="list" action="list"><g:message code="Mapas de Estocagem cadastrados" /></g:link></span>
            </div>
            
        </div>
    </body>
</html>
